Log appdelegate dealloc and websocket stop in osx app