How to handle exception in catch block in c#