added logging to barcodeassembly

added code to dispose assemblies before Application.Exit()