code: public void close() {
          try {
              String username = dataSource.getUsername();
              String password = dataSource.getPassword();
              dataSource.close();
  
              if (isEmbeddedDB()) {
                  shutdownEmbeddedDB(username, password);
              }
          } catch (SQLException sqle) {
              logger.warn("Unable to close pool", sqle);
          } finally {
              if (logger.isDebugEnabled()) {
                  logger.debug("Closed pool (" + toString() + ")");
              }
          }
      }
docs: <p>
  Closes the underlying data source
  </p>