updated dispatcher to return the disconnect function directly back to the websocket object to ensure correct session scope when disconnect is called. could be related to issue #133
logging