Add try catch snippets