modified crude way of turning off devices

perhaps will update classes to turn off before going out of scope.