scheduler cleanup