Calling `Server.Close` method before the listener registration in `Server.Serve` cause a timing problem which failed to call `listener.Close`.