fix for submission handlers running for infinity after they finish with a submission and the test script ends