strip InvocationTargetException from stack traces

A minor improvement to exception handling.