There’s a foolproof way to keep your extension cords from coming undone.
Plug the cords into a loop to avoid disconnection.