Optimal closed-loop control of active particles and a minimal information engine | Synapse