close GUI if the network daemon is killed