t4k_menu.c: Add error handling.