better handling of disconnecting slaves, all socket.write calls are wrapped in try-catch, slaves are immediately deleted when they disconnect