It really should install a signal handler that exits the shell cleanly, but a simpler workaround without patching the source would be something like: Code: $ echo "trap exit SIGHUP SIGINT SIGTERM" >> /home/user/.profile
$ echo "trap exit SIGHUP SIGINT SIGTERM" >> /home/user/.profile