Fixing error where pool never raises exception and increments pool size