Finish this project, then part ways
You don't want to work with this client again, and the current project is nearly done. Finish it, say so early, and leave on good terms.
Hi [client name],
I'll finish [project name] as agreed, with delivery on [deadline]. After that, I won't be taking on further work for [client company].