Yep, there are alot of loopholes for sure.
I retired from thr Marine Corps but it took a few months to find a job. I looked into getting UI and they told me "Well, you chose to leave the service." All I could think was "Riiight, I've done 22 years, my knees are shot, etc, and this is the way we're treated?" I think that they've since changes that law, but it sucked at the time.