Fixed a bug in the shutdown procedure while LBA CGing.