curl problem with closing libevent connections was solved