Handle closed requests gracefully