a bit less cliche outcome coulda been he failed but set up conditions for the thing to get submerged in a muddy sinkhole/quicksand. effectively disabling it for a long long time letting the spirits deal with it at their leisure.
... or the power of hate and spite letting him figure out a neat...