add cose socket interface close()