We had a cat that turned mean on us. We went away for a weekend and the neighbor who was caring for him lost the house key. Cat peed everywhere and never seemed to forgive us, then kept it up for several months after the event. We took him to our vet and explained, and the vet put him down.
Talk to your vet about your options.