She died in London in 6 January 1840 . After a lengthy writing career , and travels that took her to France for more than ten years , she settled in Bath , England , where she died on 6 January 1840 .