Selective release of ongoing connections for reassigning the resources associated with the released connections