Fixed scheduler. Added index_ shutdown