Add deregister function to PortEventListener