[Description] Occurs when the application is about to leave a modal state. [Name] 
LeaveThreadModal
A p p l i c a t i o n E x i t
E n t e r T h r e a d M o d a l
I d l e
L e a v e T h r e a d M o d a l
T h r e a d E x c e p t i o n
T h r e a d E x i t