don't close the connection when the thread finishes