fixed client connecting when server isn't running