Protect handler from garbage collection