Improved the disconnect icon display logic.