Fix unterminated service by sending message to update the task states
right when the service is started.