Wait for async format() to complete. General cleanup.