D. Logging & Error Handling