Diffusion KIO f96575b7c129

Use a lambda to reduce repeating code and better handle io errors

Authored by meven on May 30 2020, 7:37 AM.