Clean up input temp table when finishing execution if possible

cleanupInputTempTable(inner_table) makes no sense -- inner_table is always a persistent table.