GPII-716: Move socketConnected flag as member.