Previously the file would not be cleaned up if it was canceled.