fixed a bug where the application was exiting before the writing to disk finished
Merge branch 'master' of https://github.com/rtjoseph11/nTorrent