You do what the contract says. If the shop is unable to fix your car, it should not charge you. However, it may charge you a diagnostic fee stated in the contract.
Good luck!
Alex