Clean up the ELF code ported into service, including related exception codes