Move sockent_client_disconnect above sockent_client_disconnect so we can use it there