Fixed KindleGen error handling