distinguish connection streams when closing after processing