The musical, which opened on Broadway on July 26, had gotten mixed reviews and struggled at the box office.