The atterm event is called during termination of an enclave. It is called after all user stack frames have been removed from the stack and prior to calling the members for the enclave termination event. Only the members that have been explicitly registered using the CWI CEEATTRM are called.
Call CEEEVnnn (15)
The parameter list that is passed to this event consists of a single parameter, the Event Code 15.