Create an "export failed" scenario in oms state machine

i cant find a satisfying answer in the docs. Let’s imagine i am starting some export logic from the oms state machine (via middlewareconnector as a process pipeline) … this export, which is finally writing data to an external system, may fail if the external server cant be reached. How can i ensure that the status goes not from “new” into “exported” on export fail? Because it was in fact not exported.
Can this be prevented by just throwing an exception? How to show to the user that there was something wrong?
Or should this error case itself also be a part of the state machine and finally return to the origin state??
So it could look like on success


or on fail

New->export->export failed->New …

What would be the cleanest approach?

Best regards