add try catch; commit to codeplex