Wrap method invocation in try..catch block