Sam Querrey says he wanted to walk off during his match with Novak Djokovic, but overcame the odds to knock out the pre-tournament favourite.