HttpConnection: override onClosed rather than onDisconnected