Fixed Unknown state on disconnect error message generated when closing  connections.