Close connection pool in base class.