fix segfault on abort at startup