Should I stay in PhD program I dislike to have a shot at liberal arts teaching?
You should know that these days, most 4-year liberal arts colleges in the US expect their tenure-track mathematics faculty to do research.  

Colleges want to be able to offer their students the opportunity to be taught by experts who are contributing to their field.  There is also increasing interest in getting undergraduates involved in research, which means the faculty have to have research programs to get them involved in.

Of course, there is a wide spectrum of expectations.  At the most selective liberal arts colleges, research expectations can approach those of a mid-level research university, demanding a regular output of papers published in good journals.  Elsewhere there can be more flexibility, replacing a specific requirement for "research" with the broader term "scholarship"; they might require only occasional publications, and they could be projects with students, or articles about teaching.

But in general, if you want an academic job in mathematics that doesn't require you to do any research at all, you're going to restrict yourself to the least selective tiers of liberal arts colleges, or to non-tenure-track positions (and often liberal arts colleges tend to have relatively few such positions, compared to large universities).

You might have a look at MathJobs to get a sense of what jobs are out there, and what they expect.  Note that there are not so many listings in summer, since this hiring cycle is mostly finished; many more will appear in the fall.