My advice on how to do it:
Make your logbook entry for the date and add a note describing what happened - but dont log flight time. Even draw a line across it and mark it "Engine failure on Takeoff!" that way you will remember what you had go wrong - but dont enter any flight time. Stick a couple of photos in there instead too.
That way in 40 years time when you have X thousand hours and look back at your logbook or if you have to show it to others for a job interview, you wont look like a goose for logging taxi time.
A bit like those that log all IFR time as IF....even when lying in the bunk asleep....