Issue #3: Context status resource leak on errors