FIX: Crash on quitting