Cancel a bake that freezes UI with black box percentage counter
Just press the Esc key on the keyboard to cancel the bake.

Some bakes have a progress bar in the 'Info' header, these can be cancelled by pressing the small X next to the progress bar or by pressing Esc.