close and clean raet event sockets