i had the great good fortune to strike a deal with a book packager to write this series under contract , and the incredible bad luck to witness their financial failure just as the last of the three novels came off the presses .