As there might be a cleaning operation in progress, we need to handle doing stat() on filepaths that no longer exist. Closes #520.