signal handler for SIGTERM installed and better naming