fixed the bug of destroying blocked processes