Add connected status flag
change connection died check