Improved handling of method invocation, including error conditions.