Fix for Issue #55

Moved closed bool to prevent multiple asyn callbacks from processing
when server has initiated a close, issue occurs when server disconnects
client, not when client disconnects from server.