rpc simplify deferred so not to call Close twice,
fqnToClassname return err and prevent out of bounds,
TODOs