I'd like to make my program run until the user exits with my exit command, and not the termination button. Is there anyway to trap that?