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