Since WMLScript functions are used to implement services for users that expect the terminals (in particular mobile phones) to work properly in all situations, error handling is of utmost importance. This means that while the language does not provide, for example, an exception-handling mechanism, it should provide tools either to prevent errors from happening or tools to notice them and take appropriate actions. Terminating a program should be the last resort used only in cases where nothing else is possible.