Changed send_to_socket method to create a new UDPSocket instance each time

Changed send_to_socket method to create a new UDPSocket instance per invocation. This prevents issues with thread locals and thread pools. Related to issue #34.