unload grammar on end