Fixed minor scheduler bug and improved "STOP ALL" processing.