Clean up scheduler