Forced flushing when writing to debug file