Added error message when server connection closes