But hopes were high for Bolt's final competitive race, with Jamaica also boasting McLeod, Forte and 2011 world champion Yohan Blake in their line-up.
Jamaica were afforded a rousing welcome from the crowd, a relaxed-looking Bolt applauding the stands, with pictures of him constantly shown on the stadium's big screens.
Gatlin, who has served two doping bans, and the US team also including another convicted doping cheat, Mike Rodgers, and Jaylen Bacon were booed when introduced although the jeering was less pronounced than for the individual 100m event.
A close first three legs saw Britain, the United States and Jamaica, seeking a fifth consecutive world title, level-pegged for the final leg.
But there was to be high drama as a visibly swearing Bolt pulled up in obvious pain, allowing the Japanese quartet to edge in for third.
The result means Bolt, 100 and 200m world record holder, finishes his career with 14 world career medals, one behind American Allyson Felix, to go with eight Olympic golds.
Amid wild home celebrations, Bolt was attended to by medics, but refused a ride in a wheelchair off the track, instead finally getting up and limping alongside his teammates through to the finish line and then off into the bowels of the stadium for treatment.
It was a sad exit for an athlete who has lit up the track when the sport has been dragged through its worst-ever crisis, racked by doping and corruption scandals that went to the very heart of athletics' governing body.
And what a gaping hole his absence will leave, no matter how brave a face the IAAF try to put on it.
Since confirming his sprinting dominance with triple gold at the 2008 Beijing Olympics, Bolt spent nine seasons amassing 19 global golds, 13 of which have come in individual events.
Allied with a charismatic personality, it has guaranteed Bolt recognition as one of the world's most successful sportsmen. Last year alone he earned $34.2 million, according to Forbes.