Handle SIGHUP & SIGPIPE