Added disconnect method to socket wrapper