ExitGate: close pipe when dying (optional but still nice)