cleanup unreg handler