Event.System.Secure.Leave

Signals that the system is leaving Secure mode. Usually this is equivalent to leaving combat. Functions that may not be called in Secure mode are unlocked just before this event fires.

Usage:

Event.System.Secure.Leave()