Listener for destruction-based events on the main thread
Apply to UI(main thread) dependent classes that require clean-up logic.