[entropy.client] shutdown: make sure to sync() caches before destroy()