error handling

if connection is lost during download