override close() in LogScope to avoid throwing exception