Sorry, pressed the button too quickly:

The "load" hook should be called after the RexxThread got set up, but right before it starts to run, supplying a RexxThreadContext.

The "unload" hook should be called after the RexxThread ran to completion, supplying a RexxThreadContext.