|R0||0 if Wimp_CloseDown|
|>0 if starting new task|
|R0||Preserved, or set to Error Block to stop start-up|
This is used to notify when the Window Manager is about to close a task.
If a task exits without calling Wimp_CloseDown or if an error occurs and the task does not trap it, then the Wimp will call this service so that it still has a chance to shut any jobs it may have active.
If the ‘starting task’ form of this service is called then the usual response is to return an error in R0 similar to ‘Wimp is currently active’.