Fire events on the termination of the last worker in a scheduler. Prevent memory leaks in scheduler registry and config router.