fix: if an error is thrown during the invoice opening, then this is passed on to the user