Added try...catch around auto-mode