Close cursor
Fix TW-sync(close #91)