Don't crash if the server closes immediately (happens when there is no config)
Merge pull request #22 from kwaaioak/master

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