I’m not a lawyer but this is how I understand it. Anything he produces while he’s being paid by you, you own. That includes the programs, any data, or production information, it also includes the incorrect parts (despite that being a jerk move). If he damages materials, steals materials, or takes property (including intellectual or proprietary data) you could take legal action. My guess is that you should let him know that.