Set default signal handlers for SIGINT and SIGHUP.