The purpose of this study is to determine whether CPI-613 is effective and safe in either patients with refractory or relapsed acute myeloid leukemia (AML) or patients with myelodysplastic syndrome (MDS) who have failed therapy with a hypomethylating agent (such as decitabine [Vidaza] and azacitidine [AZA]).