moved socket-to-be-freed marker into the belonging iteration loop, this solves a part of #177 - the notification of listeners is not in
Authored by: railroad-mike 2017-12-07
Parent: [r1697]
Child: [r1699]