Shortly before the party leadership election , Mr. Netanyahu had pledged all Likud ministers would leave the Sharon government as quickly as possible .