Added try/catch in sockets/authorization.js and improved the warning message.