Trap INT signal correctly