The countdownCancelAll API can be used to cancel all orders after a timeout in case of an outage. Unfortunately, it is not possible to also close the open positions. Therefore, a margin call can still happen.
The countdownCancelAll API should be extended such, that the open positions are automatically closed after a timeout. Even better would be it first tries to close it with a limit order (at the mid price) and then after a second timeout with a market order.
(Honestly, I don’t even see the point of the current countdownCancelAll API without this ability.)