Fixed segfault at Logger delete