Changed to use open/close mobipocket methods.