The close method is used to close the server.
@override Future<void> close() async { await server?.close(); server = null; }