var AfterHooks = function () {
	this.After(function (scenario) {

		// after scenario tasks goes here:
		debugger
		this.testDriver.close(this.browser);

		//garbage collecting
		this.browser = null;
		this.testDriver = null; //making testDriver object unreachable for garbage collection.

	});
};

module.exports = AfterHooks;
@@ -107,16 +107,46 @@
 ebugger%0A
+%09%09if(this.browser !== null)%7B%0A%09
 %09%09this.t
@@ -176,16 +176,22 @@
 owser);%0A
+%09%09%7D%0A%09%09
 %0A%09%09//gar

fix auto browser in after hook