Handle SIG{INT,HUP,TERM} signals