Diffusion KIO 6e28af9b63bc

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

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