handle corner case where process end with non-zero return code while no new run yet