Your application must be able to cope with errors that can occur while the caller is responding to a menu. For information about how to handle errors, see Handling Time-outs and Non-valid Keys.