 This phase I trial is studying the side effects and best dose of FR901228 in treating children with refractory or recurrent solid tumors or leukemia. Drugs used in chemotherapy use different ways to stop cancer cells from dividing so they stop growing or die 