How to come out of the transcript window of Modelsim which is stuck?
Solution 1:

Hide transcript window (View ->  Transcript), and then enable it (View ->  Transcript). After this the execution will get finished, waves will appear in the wave window etc.

Solution 2:

Keep the Transcript window detached from the main Modelsim window.