call the callback when getting a connection from the pool fails

When getting a connection from a pool fails the ping test, the callback is never called. This fixes it.