1. Proper server stop - signal and wait for the client to finish
2. Heartbeat on the server introduced - so that to spot half open connections