Fixed coredump when `nginx -s quit`