Resilient routing with does not exist middlewares

Is there any option to keep last known routing configuration instead of disabling routing when configuring by mistake a routing middleware that does not exist?