Add a try on code blocks that may throw errors