you can't disable Sentries without deleting the Sentries that come from them

I am trying to make a wave based survival mode and when I tried to make a system that monitors how many Sentries spawn based on how many devices you have it breaks. when you try to disable Sentry devices they destroy the Sentries automatically. This makes it so its harder to balance and breaks the entire system because it would leave extra sentries that could possibly Eliminate the players which cause an unfair death that shouldn’t happen.