Removing event handlers in case we're reconnecting