using fail message type when exiting