Call GC in request shutdown to prevent segfaults