Stops the server and returns the number of routes captured.
Future<int> stop() async { await _server?.close(force: true); return _routeStore.length; }