get_random_connection(): report detailed error to user.
Cache connections in get_random_connection.