Add TargetInvocationException to use statement