corrected an exit listener