Error Handling


I am trying to do some error handling. My goal is for any errors that aren't included in the error handlers (which is almost all errors), I want a light to turn on before the RobotStudio program stops execution. So essentially, if during program execution the robot encounters an error not in the error handlers, it will jump to some sort of routine (maybe TRAP routine somehow?) and turn on a light and THEN the program is allowed to stop executing. Is this possible?

Thanks for any help!