Server handles client disconnects without crashes

* Server tries to resend data for 10 seconds if client is not
accepting connection.