Add a function to close the socket.
Add a function to close the socket.

This fixes ssh_connect on Windows.

miloj/libssh-v0.5,taikoo/libssh,miloj/libssh-v0.5,jahrome/libssh,jahrome/libssh,rofl0r/libssh,DouglasHeriot/libssh,taikoo/libssh,bigcat26/libssh-mod,robxu9/libssh,jt1/honeypot-libssh,Distrotech/libssh,taikoo/libssh,rofl0r/libssh,substack/libssh,mwgoldsmith/libssh,wangshawn/libssh,nviennot/libssh,mwgoldsmith/ssh,mwgoldsmith/ssh,bigcat26/libssh-mod,sebadoom/libssh,jahrome/libssh,sebadoom/libssh,sebadoom/libssh,substack/libssh,jt1/honeypot-libssh,rofl0r/libssh,robxu9/libssh,DouglasHeriot/libssh,wangshawn/libssh,pouete/libssh,nviennot/libssh,DouglasHeriot/libssh,pouete/libssh,substack/libssh,bigcat26/libssh-mod,kedazo/libssh,pouete/libssh,miloj/libssh-v0.5,sebadoom/libssh,Distrotech/libssh,robxu9/libssh,jt1/honeypot-libssh,mwgoldsmith/ssh,mwgoldsmith/ssh,pouete/libssh,mwgoldsmith/libssh,Distrotech/libssh,mwgoldsmith/libssh,elastichosts/libssh,kedazo/libssh,robxu9/libssh,nviennot/libssh,elastichosts/libssh,miloj/libssh-v0.5,jahrome/libssh,rofl0r/libssh,kedazo/libssh,elastichosts/libssh,mwgoldsmith/libssh,Distrotech/libssh,wangshawn/libssh,bigcat26/libssh-mod,wangshawn/libssh,substack/libssh,DouglasHeriot/libssh,nviennot/libssh,taikoo/libssh,kedazo/libssh,jt1/honeypot-libssh