Also reset _ternWorker and resolvedFiles.