[Bug 1035602] calibre segmentation fault on shutdown