catch correctly SIGINT signal