By dumping the connection state we'll know when the connection was opened and closed and the reason why it was closed.