Asian markets close midweek mostly with losses