rescuing from exception raised when collecting exceptions with compare

Hey,

we currently have a problem with logjam agent when collecting the exceptions in object space (see comment below).

This is a first suggestions how to fix the problem. Maybe there's a better way to do 'klass < Exception'.

greets,
Jochen