I think Safe Mode is exactly that. Turn it on, make changes, if you lose connection, the changes are removed. The only difference from what you are asking for is the 5-minute timeout. Safe Mode's timeout is... when you disconnect.
There's a slight difference - safe mode cancels the one action that resulted in a disconnect, whereas this "commit" feature would restore MULTIPLE changes that TOGETHER result in a connection loss. An individual change is allowed to cause a disconnect, as long as by the end of the sequence, a connection is made possible again.
Further, a "commit but rollback if not reconnected in time" allows changes like IP address or management port - as long as you connect in time, the "new" way to connect becomes "the" way to connect.