Pass session object to handlers and remove it at the end of onMessage.