In California, you can cancel your contract. All you need is your agent to fill out a Cancellation of Listing, you sign, agent signs, broker signs.
So sorry about your wife. Your agent and their broker should understand due to health issues.
Agent shouldn't charge you for any advertising fees - that's a business expensive. Things happens.
Cal BRE #01893550
Windermere Homes and Estates