cleanup document listener.