public override async void listenLoop()
{
while (!ct.IsCancellationRequested)
{
string packet = await read();
log.InfoFormat("isInitialized: {0}. -> Received packet '{1}' from the server.", isInitialized, packet);
switch (packet)
{
case IPCPacketType.offlineServerClosing:
shutdown();
break;
case null:
shutdown();
break;
}
}
}