cleanup listener in ACE

TBR: @devoncarew

let's see if it help s with the perf issue while typing text.