terminate

Aborts worker's associated global environment.

MDN Reference