fixed hanging bug occured when LogFileService is unregistered