Clean up dead process when checking run state