Fix a logic error in the recvmsg function where closed sockets were not properly detected.
Remove debugging code from the client and completely close the socket when the client is closed.
Modify the recvmsg function to raise a socket.error instead of the more generic IOError.
Fix a typo in the game class.
Restructure the server and server api.
Intercept and process signals when running the server.