Allow throwing exceptions in beforeRoute().