Some TODOs for abort and errno, moved ring handling code up.