Adding `null' safe check for shutting stuff off