fix isServer & isClient, and make each part closable
basic test
test script
0.3.0