Not really a question of impartiality. If you perjure yourself (a bunch of times in a row) in a court proceeding that you yourself brought, the court can punish you for it.