Thread.currentThread().interrupt();
} catch (ExecutionException e) {
// TODO check if in this case the job remains in the registry with status pending!
registryRef.incrementInt(LAST_PRINT_COUNT, 1);
} catch (JSONException e) {
registryRef.incrementInt(LAST_PRINT_COUNT, 1);
} catch (CancellationException e) {
try {
final FailedPrintJob failedJob = new FailedPrintJob(
printJob.getReportRef(), printJob.getAppId(), new Date(), "", "task canceled (timeout)",
printJob.getAccessAssertion());