finish writing access log