Force flush to make sure elements are written to handler