Clear cache in case of errors