Update TODO.
Use thread-local storage for error codes and socket path.