Add destroy method to parser