Move shutdown terminal reset to finalize()
Merge pull request #45 from lincolnthree/master

Move shutdown terminal reset to finalize()