fix the bug 1290108: add error handling while an incorrect AppMgr URL is specified or the target host is down
resolve the conflict