Relay: Treat exit status the same as closed status.

This fixes reconnect for ssh.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>