emit error event when no route matches

When no route is matched by router, an error event should be emitted so we can handle 404 error.
Do you have better solution?