The purpose of the phase 1 portion of this study was to determine if clofarabine added to a combination of etoposide and cyclophosphamide is safe in children with relapsed or refractory acute lymphoblastic leukemia (ALL) or acute myelogenous leukemia (AML). The purpose of the phase 2 portion of the study was to measure the effectiveness of the combination therapy in children with ALL.