added warning message if connection to server is lost