Avoid NPE in case of early cancellation (before handlers are initialized).