Rpc updates to allow closing connection from server without exceptions