With flatworm exit just be careful of the toxin released when the worms start dying. Having a significant amount of premixed saltwater on-hand would be a good idea.
the dying flatworms are toxic to the corals, but if you read the directions and follow them and add the active carbon to remove the toxins as directed, you are good.