Updated agent upstart config to handle IP cleanup