Adds sending messages when catching errors