Plugins should emit a sendMessage(json) signal in response to commands. For example, surface calculation should emit a "finished" signal through RPC.