Kloska scored Bristol’s fourth, when AJ MacGinty stripped Bath of possession and found Fitz Harding, who linked up with the prop to run under the posts unopposed.
Prem history showed that no team had ever been behind by more points and gone on to win the game and at 31-0 Bath looked down and out.
But the comeback began as Lawrence and Joe Cokanasiga broke into space and in a one-two the centre pulled a try back.
Griffin added another five minutes later, from a pick and go at close range, but it was Arundell who had the crowd on their feet with a moment of magic, collecting the ball on halfway and weaving his way to the line at untouchable speed.
Williams, though, stemmed the flow at the other end, scoring Bristol’s fifth to give them more breathing space and while Donoghue found a gap to give Bath a bonus point score, it was all they would take from the game.
Bath head of rugby Johann van Graan told BBC Radio Bristol:
“[We’re] Disappointed. Rugby’s an 80-minute game, the first 17 minutes we conceded three tries and that’s where we lost it, so clearly not good enough from our side.
“They made a good start, all credit to them, they were clearly the better side on the evening but this is on us and we need to make sure we start games better.
“We got ourselves back into the fight, that’s what we’re about, we had an opportunity with four minutes to go to get over the try-line and you score there it gives an opportunity to win it in the end, but that didn’t happen.”
Bristol director of rugby Pat Lam told BBC Radio Bristol:
“At half-time both Gengey [Genge] and Fitzy [Harding] were really annoyed that we should have been 40 points up and that set the tone.
“One of the things Stevie Luatua said too was we know we can play and do things, but it’s going to get ugly, it’s going to be chaotic and we can win ugly as long as we hang in and keep fighting for each other, and that’s what they did tonight.
“A great game of rugby, a well earned five points – the boys deserved it and our fans deserved it and our community deserved it.”
Bath: Donoghue; Cokanasiga, Lawrence, Ojomoh, Arundell; Russell, Spencer (c); Obano, Frost, Griffin; Jeanes, Ewels, Hill, Reid, Du Preez.
Replacements: Dunn, Wheeler, Stuart, Richards, Underhill, Van der Linde, Redpath, Green.
Bristol: Jordan; Rees-Zammit, Van Rensburg, J. Williams, Ravouvou; MacGinty, Randall; Genge, Oghre, Kloska, Rubiolo, Batley, Luatua, Harding (c), Ivanishvili.
Replacements: Thacker, Woolmore, Halliwell, Caulfield, Owen, Marmion, Moroni, Pepper.
Referee: Karl Dickson.