try-catch wrapping.