pub fn safe_println(content: &str) -> Result<(), String>
Safe println function that handles broken pipe errors gracefully