406449 - Session's disconnect not detected

+ Vastly cleaned up IOState and ConnectionState behavior