Revert "removed unnecessary vals"

This reverts commit 5b9cae5fb444e189d796755fcba53d51eb49fd25.
Busy wait on the ocntext.interrupted flag, and then kill the python worker