They are only required to pay you for the time you are on site.
You can't collect unemployment if you quit. I learned this the hard way when I quit my job after being assaulted by a customer and deciding it wasnt worth the trouble to stay.