code: @Override
    public void close() {
      LOG.info("Closing " + this.getClass().getSimpleName());
      try (Connection conn = createConnection()) {
        JdbcWriterCommands commands = createJdbcWriterCommands(conn);
        if (!this.createdStagingTables.isEmpty()) {
          for (String stagingTable : this.createdStagingTables) {
            LOG.info("Dropping staging table " + this.createdStagingTables);
            commands.drop(database, stagingTable);
          }
        }
  
        if (this.userCreatedStagingTable != null) {
          LOG.info("Truncating staging table " + this.userCreatedStagingTable);
          commands.truncate(database, this.userCreatedStagingTable);
        }
      } catch (SQLException e) {
        throw new RuntimeException("Failed to close", e);
      }
    }
docs: Drop table if it's created by this instance.
  Truncate staging tables passed by user.
  {@inheritDoc}
  @see org.apache.gobblin.Initializer#close()