One way or the other, the company is looking after its interests. You will be reciprocating that when you find something better for yourself. They will understand.
I have quit, folks weren't too pleased, but I kept everything civil and professional. And I was successful in getting a recommendation.