resolved warnings - closed sockets on JavaIO