fixed interrupt
by moving interrupted to after threads.interrupt
Moved creation of Scheduler.instance from getInstance to assignment