modified Error:Cannot enqueue Quit after invoking quit.