Clean up Logical Channel use for CarrierApiTest.

Only close logical channels that have already been opened. Currently,
CarrierApiTest attempts to close all logical channels in the test setUp
and tearDown functions. In almost all cases, these should be unnecessary
(as the channels are already not opened) which causes false positive
error messages in the test logs. This change only attempts to close
opened channels to avoid adding noise to the logs.

Bug: 154005486
Test: atest CarrierApiTest
Change-Id: I3f43ee842dac6836edbb744572e1559ebf17b6d5
Merged-In: I3f43ee842dac6836edbb744572e1559ebf17b6d5
1 file changed