properly kill timed out queries