added loopexit trigger to libevent http server