static synchronized void shutdown(LContext lcontext) { if (lcontext != null) { LogoCommandRunner.stopLogoThread(lcontext); ((LContext) lcontext).canvas.clearall(lcontext); } SoundPlayer.stopSoundsForApplet(lcontext); sensorValues = new int[16]; for (int i = 3; i < 8; i++) sensorValues[i] = 1000; }