Add 'message' property to InvalidStateError exception