code: public static void cleanup(Driver driver) {
          try {
              DriverManager.deregisterDriver(driver);
          } catch (SQLException ex) {
              LOGGER.debug("An error occurred unloading the database driver", ex);
          } catch (Throwable unexpected) {
              LOGGER.debug("An unexpected throwable occurred unloading the database driver", unexpected);
          }
      }
docs: De-registers the driver.
  
  @param driver the driver to de-register