Add MethodInvocationException support
Signed-off-by: Mike Cao <vipmike007@gmail.com>