clear active connections within loop to avoid TimeOut