As long as I know before I start playing which building it is, I simply won't click on the building unless the game would get stuck in which case it'd be a nice fast exit.