Use socketpair to detect parent death.

Parent death can now be detected immediately, rather than waiting for the
next message to be processed. This is also used during orderly shutdown.