Close NodeEnvironment in tests after finishing