Made client nonblocking and handle keyboard interrupt.
Made client disconnect when server stops. Made client more verbose.
Improved messages.
Changed to timeout instead of blocking so it does not take 100% CPU. Changed main loops to delete self instead of replicating code.