fix process termination(syscall), clean up the residue in the readyqueue