remove retval and exhausted keys on restart