check if window get destroyed. if so fake a disconnect message