alert if connection closes