I guarantee you that a halfway decent lawyer would still find a way to sue you and win. Any lawyer could find a way to sue you and the ensuing legal scuffle would consume more money than you made on the project.
Just one of many points they'd raise - once the client pays, that kill switch is still present and could be tripped by the developer, the developer's employer, a hacker, or accidentally.