My issue is the following: I am trying to protect D-(+)-gluconic acid
δ-lactone using TMCl, N-methylmorpholine (NMM) and THF as a solvent. However during the addition of TMSCl the lactone suffers a hydrolysis reaction before the reaction of protection takes place. In the reaction medium it was observed a huge steam of HCl during the adition of TMSCl, which yields a whithe solid in the reaction medium. I would like to know how prevents the hydrolysis product takes place and how reduce the steam of HCl form TMSCl.