I am unable to remove acidic impurities and traces of water from the final product of my reaction which is simple halogenation of an alcohol. The halogenated product is very quickly degrading to the reactant due to which I am unable to preserve it for my further reactions. The possible cause for degradation what I find is the presence of traces of acids/water.