Fixing session cleaup in stopScanning. Now removing inputs, outputs, and moving to a background thread. Previously calling stopScanning would cause a threadlock in -[AVCaputreMetadataOutputInternal dealloc]