Product recovery and purification