Catch keyerror when websocketerror happens with unregistered socket.