Removed socket disconnect logic. we shouldn't be querying the database during a disconnect anyway...