You can try to extract your product from reaction mixture using low BP.solvent that has ability to dissolve your product then evaporate the solvent, or chose solvent to extract NMP from reaction mixture.Also you can use column chromatography for separation..