Fixed Scheduler close for local adaptor.