FIX: crash on exit in httpSetRequestLogCallback