amend a1b4f9b8ab - handle disconnecting from all masters