Added a try catch snippet

I was finding myself missing a try catch snippet so here is one.
Cheers