fixed process exit problem with SIGINT handling.