Improved error handling (see --retry option); added verbose mode (see --verbose option)