internal bool RemoveLockFile()
{
bool success = false;
try
{
if (Directory.Exists(_rootDataDirectory))
{
var lockFilePath = Path.Combine(_rootDataDirectory, LockFile);
if (File.Exists(lockFilePath))
{
File.Delete(lockFilePath);
success = true;
}
}
}
catch (Exception e)
{
Logging.Error("An error occured removing the profile lock file.", e);
}
return success;
}