He did make good on his promise and had her confined to a convent. Louise cried and sent her husband letters asking for forgiveness. He later felt sorry for her and released her. When her husband got sick with his final illness, however, she went out of her way to care for him, putting herself at risk of contagion. Still, her unpopularity and odd behaviour meant that, upon Luis' death, her father-in-law king Felipe V sought to have her marriage to Luis annulled. As a result, she lost a valuable pension as a former Queen of Spain, and was forced to move back to France, where her cousin Louis XV refused to allow her to reside in Versailles.