Handle an error in pool.go