This pilot clinical trial studies how well imetelstat sodium works in treating patients with primary or secondary myelofibrosis and other myeloid malignancies. Imetelstat sodium may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth