Smarter termination