Add forceful connection termination after each iteration