close corrupted connections