More value_tuple -> reading conversions
Fix socket exception handling on Mac OS X