deal with open connections