Fixes issue #1

Server can now maintain a continuous connection with the client and
closes connection when client send 'exit'.