added exception handling for wget