public void Stop() { if (graph != null) { graph.CloseInputStream(inputStream).AssertOk(); graph.WaitUntilDone().AssertOk(); } }