Don't kill connection thread if user cancels closing