Update connection pool to use release() instead of end().