Added SIGINT/SIGTERM/SIGQUIT/SIGABRT handler for graceful exit