Add isAlive
Add connection close listeners