Correctly remove events on app change.