Only remove tmp file if it's not already moved.