Stop agent in case there is no output connection