Cleaning up sockets var stuff