Close network connection