removes getSocket