If she was due for a molt then likely her body began the process for it but sadly she lost her grip and then was unable to get back into position. As they get closer and closer to their molt everything tightens up and movement becomes hard. You might have been able to save her by getting her...