that feels wrong,
all this should be chained as a promise of the server beeing started, or wait on that promise.