This version of Unity is unsupported.

PlayerSettings.WebGL.closeOnQuit

Switch to Manual
public static bool closeOnQuit;

Description

If enabled, the Unity Player will close the browser running it when the application quits.