make the connection a daemon, so it dies when the parent dies; make sure it calls close before