Forgot to add web worker's terminate function call, fixed browers crashing bug.