bookex: Fixed dialog not closing