Currently, if a recording is in progress and the user closes the main window, the browser window (where the recording takes place) is also closed. This causes the ongoing recording to be lost without any warning or confirmation.
If a recording is in progress and the user attempts to close the main window, we should prompt the user with a confirmation dialog.