Ham and beans in a Crock-Pot
You don't say whether the ham had been defrosted first; if not the temperature would have taken so long to rise that you're already outside the safety guidelines.  Even then, turning off the slow cooker for several hours is a bad idea from a food safety point of view.  The beans shouldn't overcook too much on low anyway, so I'd say just leave it on low.