Add device to exit-attribute-mode call upon exit from TTY interface to prevent error and backtrace on attempting to exit.