exception handling in downloading