use members to keep pointer valid.
use terminate() to stop libshadowsocks thread.
read libshadowsocks log work in progress.