wrapped message creation in an exception handler