Pressing "ESC" button closes workout!

During one of the “Training Plan” workout (not to be confused with the “Training Workout”) I accidentally pressed the ESC button on my laptop. This ended my workout session immediately without any additional prompts. Perhaps this isn’t a bug but it’s not a great UX either.