connection checking and toast removal