Use service message!
https://www.jetbrains.com/help/teamcity/service-messages.html#Canceling+Build+via+Service+Message
No need to fail a build (causing confusion) or add a condition to dozens of build steps.