Added safeGuard()

This task will shut down the program before the gears start grinding.