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.
Chrome 40: DOM agent must be enabled before CSS agent can be enabled
add disable
Also reset _ternWorker and resolvedFiles.
Merge pull request #10020 from adobe/rlim/terminate-tern-onquit

Terminate tern worker on quit
Merge pull request #10088 from adobe/randy/issue-9999

Chrome 40: DOM agent must be enabled before CSS agent can be enabled