make elf parser more robust
do not crash if initialization is interrupted prematurely