/// <summary> /// Used to close file in order to start a new session /// </summary> internal static void ClearSession() { lock (static_lock_variable) { if (_this != null) { _this.Close(); _this = null; } } }