fix output for failed target file, and failed connection