Remove use of text_socket in checkused()