Catch json exceptions and others too, not just IOError