flush the stdout