There's a so called Safe Mode in RouterOS. Not exactly what you described, but solves the same problem. Check
this wiki page out for details (the page describes how to activate Safe Mode from console, but there's also a "Safe Mode" button in WinBox).