Safe mode
From MikroTik Wiki
RouterOS has a "safe mode" feature. It can be enabled/disabled by pressing ctrl+x. You can enter safe mode, apply a new configuration and if your connection to the router is lost RouterOS will return to the previous configuration.