Is this the right point to sleep? Shouldn't that be after really doing the framework stop?