Temp Fix and debug message for CTF quit event