Prevent showing exit message twice