public void clearAllWatchers() {
		if (registeredWatchers.size() > 0) {
			boolean isRemoved = false;
			LOG.info("About to unregister all watchers.");
			for (WatchKey watchKey : registeredWatchers.keySet()) {
				try {
					isRemoved = notifier.removeWatcher(watchKey);
					if (isRemoved) {
						registeredWatchers.remove(watchKey);
					}
				} catch (IOException e) {
					// Let other watchers be cleared off
				}
			}
			if (registeredWatchers.size() > 0) {
				LOG.info("Failed to clear all the watchers. Some watchers couldn't be unregistered.");
			}
		} else {
			LOG.warn("Failed to clear all the watchers as no watchers registered.");
		}
	}