terminate

The terminate() method of the Worker interface immediately terminates the Worker.

MDN Reference