render video, clean up sockets