make sure that the state/raw data methods are not called on error

this to avoid hard to find bugs