Add try/catch for missing Pre-route middleware