Fix to connection pool - close before creating
Fix to pool