Fatal() causes a segfault with threads