Closing socket in SendUdpJNI before return
added logging messages