https://twitter.com/technosucks/status/800831482608484352
"You might not be able to use the Esc button in the Touch Bar if the app you're using becomes unresponsive." https://support.apple.com/en-ca/HT207358
Fortunately you can still force the Mac to shut down with the Touch ID button after it locks up.