Helper to run the dispatch handler