Added the setMessage() method for the exit confirmation.