bugfix: memory leak on connection close

around 60 bytes of memory were lost on each connection close at the
server side (when the client initiated a close)