While reviewing flask contexts lifecycle, a database session leaks on exceptions. Which action fixes it, and which check proves it worked?
Answer options
- A. Close it in a teardown callback
- B. Verify cleanup always runs
- C. Build apps through a factory
- D. Run it inside an application context