Shutdown worker's tasks if master is disconnected