Revert to previous route layers on error