Added IOError when attempting to reset states.  Added test.