Removing events during deactivate