The cleanup code that handles moving the temp file to the partial