Changed the watcher of configuration file to native

Changed the code of configuration file watcher to native .NET FileSystemWatcher.
Fixed ValidateConfigFile method to catch unexpected error.