Remove comments and shutdown agents for faster exits.