Fixed nasty error preventing exit, apparently you shouldnt make org mode the default for a buffer