restore setApplicationClose
Merge pull request #18 from MediaBrowser/master

restore setApplicationClose