If already done, close writer pipe