add support to SIGINT signal in script