debugging race condition between appen() and close()
added logs so can actually test race condition