make things configurable, dispose closed sockets