fix spelling misstake of ConnectException.
restart agent if it stopped unexceptly.