Camera activates itself after project stops

I have a project I'm making where you wave your hand in front of your camera to move Alonzo to some cookies, but I'm running into an issue where after I click the stop sign, the camera activates itself and Alonzo sometimes still moves with my hand.

Help to fix this issue is appreciated. Here is a link to the project so you can look at the code.

Not quite certain what's the root cause but adding these two blocks cures it for me