Add generic on_exit support.

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

Merge request reports

Loading