scheduler keeps running after test shut down