Close shells used when restarting machines