I know that it is recommended that the pilot not think about saving the airplane, only himself, but that seems to be impossible to do. As an examiner, I found that many students are not properly taught how to respond to a power loss emergency. They frequently would waste precious time attempting a restart. Keep your cool and do as you were taught. Keep flying the airplane.
Panic is the killer.
Remember, all you've got going for you is the few precious seconds of time before you encounter mother earth, for surely you will. Even the United States Congress can't repeal the law of gravity. If you waste time attempting a restart as you are gently sinking toward the ground, you may find that there is no longer a suitable landing area available to you and the airplane may put you into a very unsuitable place. Then and only then should you attempt a restart as time permits. If you are successful at restarting the engine, fly on about your business, if not, go ahead and land on the area you selected and you controlled the airplane into, instead of permitting it to put you into an unsuitable place.