Mansfield boss Paul Cox promised to take action against sloppy defending as his side were on the wrong end of a 5-4 defeat at Fleetwood.
An injury-time penalty from Antoni Sarcevic sealed the Fleetwood midfielder's first Football League hat-trick and victory for Graham Alexander's men.
But the Stags who, despite goals from Chris Clements and Anthony Howell, found themselves 4-2 down clawed it back to 4-4 thanks to Sam Clucas and Ross Dyer and looked to have earned an away point.
But substitute Matty Blair was bundled over in the box by James Jennings and Sarcevic showed great composure to end an incredible afternoon of football and to leave Cox cursing the mistakes which cost his side the points.
He said:"I can't legislate for stupidity and defensive errors. You can't defend like that and hope to win a football match.
"Against a team who have been the the top three of this division for most of the season, you can't do that;.
"Going forward we've played some good stuff, we've scored some good goals.
"But you can't legislate for bad defending. The buck stops with me and I'm going to do something about it. It's my job to sort it."
Fleetwood boss Graham Alexander, who saw Gareth Evans net twice, admitted his side had got out of jail.
He said: "At the end of the day it's about winning matches but we have to be honest and say defensively we weren't good enough. We've got away with it.
"The lads have got themselves off. To twice throw the game away, first and second half, was tough but they never stopped.
"It was two teams going at it with both barrels attacking wise but there'll be two managers asking questions about the way their sides have defended.
"I stayed in my seat for the fifth goal because I didn't know if there'd be another equaliser in the 10 seconds remaining.
"I didn't want to celebrate."