Don't throw KeyboardInterrupt from a child process.

This should fix #1327.
Merge pull request #1357 from int3/keyboard-interrupt

Handle keyboard interrupt in child processes.