Close connection when spider closes.