methodbun.Worker.terminateterminate(): void;Aborts worker's associated global environment.MDN Reference