added sample of using security exit