Master the Swift defer statement. Learn how to guarantee crucial cleanup code executes right before the current scope exits, even if an error is thrown.