Timers and event handlers keep class instances alive, causing memory leaks in long-running APIs. Fix by unregistering callbacks.