Checking connection on teams before processing