try-catch in download