Fix disposing persistent handle for node <= v0.11.8.