remove command related event hooks