Raise Exception on attempted invalid state change