Terminate tern worker on quit.
Directly call terminate function of tern-worker on quit.
Limit the code to Windows only since the crash is only on Windows.
Add JSDoc for the optional param.
Also reset _ternWorker and resolvedFiles.
Merge pull request #10020 from adobe/rlim/terminate-tern-onquit

Terminate tern worker on quit