Fixed writing to sockets on the server side; Handling possible exceptions with writing to sockets