refs #42. Fixed fatal error, if connection with server is missing