Fixed master to properly handle registration attempt of a disconnected slave.