Actually only GUI froze. The commands if started from the console were run from the GUI thread and in this case the GUI thread waited for the player to place a block.
It's fixed in the new version. The commands that are started from the console are run in a separate thread.