It happens naturally on Warcraft. Teleport is a channeling spell, and skills that stun or Hex break channeling.
However, if you want any regular hit to stop the channel, use triggers.
1) When the unit starts the teleport, set a Boolean == true
2) Use a Damage detector and check if Boolean == true for the damaged unit. If it's, break the channeling (Setting unit position to the same position it has works, or make a dummy ministun. Care for the leaks.)
3) Set the Boolean == false again.