Turn off official API listeners before turning them on, in case of a reconnect as we don't want to emit duplicate events. Related to #12.