add trap for script stoped by INT TERM