Removal of residual monomers by chemical reaction