You might be running into the same issue as I was with the updated PsychoPy. They updated how you break out of loops. See this thread: