Don't crash if the server closes immediately (happens when there is no c...

...onfig)