exceptionHandler.handle(result.cause());
}
}
// Decrement the handler count.
handlerCount.decrementAndGet();
// We need to handle for cases where the end handler was called
// before all the data was written to the file.
if (complete.get() && handlerCount.get() == 0) {
closeFile(filePath, file);