fix a bug where kill command doesn't remove specified process in the resident queue,