handle unrar and unzip errors better

check exit status and send error message if failed