close figure after comparison so mpl doesn't complain