introduced functions TypeRegistry.shutdownFileSystemWatcherThread and FileSystemWatcher.shutdownAndWait