Fix #226.  Introduce "exitlinkmode" option to determine if exiting link
mode should return to normal mode.