When you give the code, you give license to anyone to make a mess of what you have created.

I don't want my name on something that has been wrecked by the client, and I sure as hell don't want it in my portfolio.