Introduce #raise_exception, refactors Router#scan method