Basic working version of socket server with client. Connections getting closed. No leaking threads.