Improving the return of Objects for the pooling Factory when an exception is thrown.