increase default timeout
create a new UDP socket before flushing, and flush in a separate goroutine with a copy of the events