Closes the logger and releases all resources.
@override Future<void> close() async { try { Logger.removeLogListener(_logListener); } catch (_) {} return await _logger.close(); }