The reasonClosedCause field is sufficient to remember the connection liveliness status.

Get rid of the 2nd boolean flag that gets set at the same time to avoid confusion.
Expose a method that reports how the connection was lost.

This is an useful diagnostic information