Close workers when master fail