Slave keeps randomly quitting