handle socket closing
check for buffer length
temporarily disable closed event, when already closed
modify until have dmc_patch
add dmc_sockets example