Removed socket events after use.