debug logging for onQuit