Send 0x8 byte when closed

Some WebSocket clients require RFC compatability, which requires a 0x8
byte to be returned to the client when the client closes the connection.
This fixes that bug (issue 28 on the original repo)