Wrapped message handing in a try-catch block