Fix disconnecting mlt_event listener.