When the printer stops printing, e.g. because the printer has run of paper or because an error occurred, you only have to pay for the pages that have actually been printed.
To finish your job the best option is to send the missing pages to the printer again.