PURPOSE: This phase II trial is studying how well thalidomide works in treating patients who have undergone surgery and received chemotherapy directly into the abdomen by hyperthermic perfusion for cancer that has spread throughout the abdomen due to colorectal cancer or appendix cancer .