Detach 'end' listener when glob aborts.