fixed deadlock when master stops responding