remove listener when complete