Destroying of the BarcodeScanner component reduces power consumption.