Close TightVNC Viewer when cloud device is malfunctioning. Also, make the keep alive thread more robust. Change-Id: Ic0774a0cf14d7f0787953ed9e26cad89826df4fe