When i log it always stops right before its done but i never lose any data