Failsafe for when user is not logged, disable socket events on main page