For scopes where we can't set the private data, create _sbbs.on_exit[] array and fill that with the scripts.