Log exception type

When a script triggers a critical exit (CRITICAL in the nagios sense), we now try to add exception information to the nagios message.