fixed scheduler zombie exit issue. Still have a bug in mps.c