Just walking away like that would be impracticable here. Both parties profit from the legal three months minimum notice. But some 40 years ago, I had a summer job in a paint and lacquer factory. In those days, health hazards from solvents were not really recognized. I soon noticed that some oldtimers were pretty unstable, and that I did'nt quite wake up in the morning until I had breathed the factory air for some ten minutes, and in the afternoon, I fell asleep on the tram home when deprived of the solvents.
But I didn't quit just like that. I talked to the admin people and explained why I did'nt dare to stay, and so we parted amicably. As an aside, I then went to the margarine factory where I had worked as a fork lift truck driver for a couple of previous summers, and they were more than happy to have me back. They probably questioned my sanity for the first few days on that job, because I was so elated to work in a decent atmosphere, and cool in that rather hot summer as well, jumping around, dancing on top of fully loaded pallets, etc.
No wonder, really, that I later on was active in establishing the first Tech U syllabus on environmental chemistry, and later still as elected chairman of the local municipal health, environment and sanitation board.