Remove unused code.
Reset machine animations when not running.