Cleanup the whole darn __clean_tmp() function