Guys, I'm having some intermittent issues with my 2004 Gehl 5640. The issues have been far between, but now more frequent. While in operation and sitting on the trailer the engine goes on and off then shuts off completely. The dash/panel lights flicker, and when in operation while moving there even has been a loud very bad grinding noise, like the parking brake is trying to actuate. I was told a bad battery or loose connection at the battery or where the panel power wire connects to the starter. All connections look good and the battery load tests good as well. Any ideas I am stumped? The problem has been far between until now it is happening frequently. Thank you for any info and expertise. -Chris