finish remote method invocation