There’s a bug in the latest version. Here’s the solution.
Add routineForceEnded = True after continueRoutine = False
routineForceEnded = True
continueRoutine = False