Flush immediately and sleep for 5ms after the flush in order to exploit messages' batching