fix a close() fun warning