Throw errors when raised inside the pool