added handler for SIGTERM|SIGQUIT|SIGINT