Node.js: if there are no listeners on the 'upgrade' server event, close the socket immediately