fix: Fix nullref thrown in RestClient disposal
Created by: Neuheit
Summary
Fixes #697 (closed)
Details
If the client is immediately disposed at startup, the cancellation token is null and throws because there are no buckets in the rest client. This PR adds the appropriate null checks.
Changes proposed
- Adds null checks to cancellation token in rest client disposal.