Gash to quit Liberal Party if elected