Fix 1674142: We need to process pending events whether using close() or safe_close...