This prevents invalid command errors caused by bytes not being flushed to