Might be helpful to log a message if the repo files couldn't be cleaned, otherwise the failure reason could be extremely hidden :)