Graceful timeout handling using KILL QUERY