added nuget
better application exit handling
Merge pull request #1 from ppekrol/master

minor fixes