Trial nears end for man accused of shooting ex-girlfriend in