[Process] Properly close pipes after a Process::stop call