add mechanism to re-establish the connection when its state got faulty
adjust reconnection paramters