GROOVY-6011: Catch Exception instead of InvokerInvocationException