Added methods to close the database connection pool.