In some cases those are covered by the double jeopardy principle. In others, the world. For example, why does the guard patrol change? If the GM decides that arbitrarily to force another roll, that is poor DMing. If the guards change every hour and that time has come, then it follows from the...