I have 2017 MBP with touch bar. The sound kept playing, but mouse and keyboard didn't respond to anything. The game canvas was black. Couldn't quit browser or switch window from keyboard so only option was to force boot.
Probably a WebGL-Issue and not much you can do about it ...