Making sure the flashlight can be shutdown when isAvailable was called between switchOn and switchOff