add try/catch/finally block snippet