http://channel9.msdn.com/Forums/Coffeehouse/Win7-deletes-shortcuts-on-the-desktop#c4283b0a9830d4a18b275a00d00069023

Although for some reason it works here... ?

lock(object)
{
   if(object.IsValid)
   {
      object.DoSomething();
   }
}