format: close disk when done to avoid leaking 20 KB