How to skip exception - C#