update nacl module to close() properly