Handle RPC call (TODO: add rpc handlers registration)