If the engine failed at 40 feet, the only option was to reduce the power on the remaining engine (not to idle, though), keep the yaw to a minimum, and plant it back on to whatever runway was remaining.
I recommended to the reporter that he find a current, and experienced light airplane multi-engine CFI, preferably one with 310 time.