command line version automatically closes after download is compltee, unless --stay-open flag is being used (fixes #53)