Slxu kill cleanup

Clean up system resources, especially network resources when a query is killed.
Sorry. Unconsciously typed an extra space. I'll fix it.