Trap abnormal exits