Added call to disconnect socker session.