Bugs fixed that caused the client to silently disconnect from the server due to socket inactivity.