removed log
added errorhandler to websocket