Remove global event handler