fix: store SPL closures in register() so unregister() can remove them
#3759
Loading
register() so unregister() can remove them
#3759