fix bug 1315564: wait too long for socket to time out when appmanager server is shutdown
fix bug 1315564 and 1314326: wait too long for socket to time out when appmanager server is shutdown
fix bug 1315564 and 1314326: wait too long for socket to time out when appmanager server is shutdown