Currently there isn't a way to stop a sandbox that runs in a loop. Hyperlight has mechanism for doing this that should be wired up.