remove update_sched_maint and make delete_sched_maint work more safely
Merge pull request #244 from ali-graham/242_end_sched_maint_safely

remove update_sched_maint and make delete_sched_maint work more safely