Fix issue where switching from half_open back to open was unrecoverable.