state plugin could sometimes throw an error