Slxu kill cleanup

Clean up system resources, especially network resources when a query is killed.
Oh I just see you've found out in a later comment.