It was based on truth, but I think he improvised that scene, it wasn't in the script, and they kept rolling and liked it.
And especially because of the wartime secrecy, they didn't rush to consider anything had gone wrong and the guys would need rescue :-/