Fix bug: The log display on screen unexpectely when service stopping.