Reset client state on error, so we reset when the server restarts

Otherwise forgetting to refresh after updating the server may cause incorrect visualisations.