Added catch bad_alloc in scheduler.cpp