Improved handling of lost connections by informing the user.