Avoid call run_service and end_service more than once.