GROOVY-6283: ProxyMetaClass doesn't invoke afterInvoke when an error occurs in the method call

afterInvoke should be called whenever.