Unregister from listener when done mining.