added handler for SIGTERM|SIGQUIT|SIGINT
fix some typo