Closed-loop Diffusion Control of Complex Physical Systems