Stop uncaught error when socket connects to invalid session