I encountered an issue where several of my shotgun turrets were shooting in a direction (where enemies were previously) endlessly.
When I removed the first bugged turret which was the one hogging all the ammo, it allowed the others to get some ammo and they proceeded to start shooting as well.
The turret at the very end (where the ammo would pile up) did not suffer from this issue.
I think it might be due to the fact it did not run out of ammo while firing at actual enemies whereas the others did.