haiku: Cleanup error and trace text