close old handler before add new one with the same name