Close connection when one socat exited (currently pipe only)
Catch Unix signals and close socat on demand