Diffusion KIO efc5721d3cb5

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

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