The importance of a maintence agreement

So unfortunately I've lost a client of 9 years over a $150 dollar dispute. After hours on the phone frustration and a bad experience on both ends of the agreement I had to let them go. This all could have been avoided with a simple and affordable maintence agreement to allow us to be proactive in discovering and updating code to keep up with changes in technology.