bug fix: error_and_quit needed two arguments.  Download manager put in extraneous newline.  using sys.stdout.write instead