fixed a bug preventing quasel from crashing on exit