Changing way of communication in network adapter

Closing connection after every send and receice