This crisis follows the resignations in recent months of the British and Irish prime ministers , Tony Blair and Bertie Ahern , who worked closely together to coax Protestant leaders toward Sinn Fein .