make sure listener clear up after connection reset