fix in client - exception after lost connection - SOLVED