He and Mary were astonished when Godwin -- who espoused free love in his writings and had not married Mary 's mother , the feminist writer Mary Wollstonecraft , until she was pregnant by him -- turned his back on the pair , joining London society in ostracizing them both .