1. You must have a corpus like 'sinking fund' to take care of this. Else in your future projects collect money keeping this contingency in mind.
2. If there is no pending service from your end , your only remedy would be to file a civil suit for recovery of money to get back your dues towards this service.
3. otherwise adjust this money with the pending work if any in the project.