Use the flush in order to make sure the information on the status of the
master thread is updated