code: private void closeFile(final String filePath, AsyncFile file) {
      file.close(new Handler<AsyncResult<Void>>() {
        @Override
        public void handle(AsyncResult<Void> result) {
          if (result.failed()) {
            try {
              input.vertx().fileSystem().deleteSync(filePath);
            } catch (Exception e) {
            }
            if (exceptionHandler != null) {
              exceptionHandler.handle(result.cause());
            }
          } else if (fileHandler != null) {
            fileHandler.handle(filePath);
          }
        }
      });
    }
docs: Closes a file.