I think he decapitated Walter, and left his head to just sit there alive for an eternity of immobility and nothingness. That's hell enough.
Regardless, Ridley probably means to use Walter to send any remaining engineers after David in the next movie. Whether David wanted it that way or not, we'll have to find out.