Moved _closed bool

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.