Also handle error case for pool counter

Change-Id: Ib9f1877b07f40667aad0dc1e828aa3906c55e47d