Use domains to catch most errors and fall back to a simple prompt.

Guard most uses of `process.send` with a check against `process.connected`.