dgram: emit close when handle is closed