Changed localhost to IP Address and changed error message on server abrupt connection close