The temperature of the liquid phase reaction is controlled by withdrawing a vapour phase overheads stream from the reactor comprising the aliphatic acid, water, gaseous by-products including methyl bromide and methylacetate, and gases such as nitrogen, carbon monoxide, carbon dioxide and oxygen.