try/catch wrap