proper promise clearing.