Fixed gui still in connected state on normal server shutdown