Close the sink and ensure all pending trace data is flushed to the target.
@override Future<void> close() async { _ios.write('\n]\n'); await _ios.flush(); await _ios.close(); }