fix hang on quit issue.
remove debug.