Introduce a appHandler to wrap internal handlers.