call the callback when getting a connection from the pool fails