put try around dead websocket, and made prints logger things