Improve client termination when master crashes or disconnects (reliability)