Try to offer code escrow (for a fee) instead. Larger companies are worried that small services go out of business. In case you close your business (or get hit by a bus) the customer then has the legal right to get a copy of the code from the escrow.
With escrow, your customer certainly isn’t worse of.