That's ok. After line 7 (desired audiodevice loaded) the sound system tries to init itself. One of the first things it does is to add an exit proc in order to ensure it's own cleaning up on shutdown. Then the init fails although we can't see it here. The program terminates with an error message which is always printed in the last line (ERROR: no appropriate audiodevice available). And all the lines from #8 to #19 are part of shutting down already.