Implemented running status flag to avoid race condition during schedular...

... startup