rename signal handler for term and hup