Fixed: Segfault on startup and immediate teardown