Exit key_server when stdout is piped and the other process exits

This handles the case where notifier.js crashes. We need
both processes to be running so when one exits the other
needs to in order for the process manager to restart the
script.