Close one end of each simulator/visualizer communication pipe

Only one side of a shared pipe should be open in each of the two processes sharing it. Fixes #155.