Prevent scheduler from crashing infinitely if apiserver is unreachable
Merge pull request #1613 from ghodss/fix_infinite_scheduler_crash

Prevent scheduler from crashing infinitely if apiserver is unreachable