Provide a function that allows destroying a parser