connection to server failed, closing the program