Make error handling more robust in the server.
Make error handling more robust in the server.

Fix #23.

aaugustin/websockets,aaugustin/websockets,aaugustin/websockets,dommert/pywebsockets,biddyweb/websockets,aaugustin/websockets,andrewyoung1991/websockets