added a proper graph shutdown
Merge branch 'master' of https://github.com/gsummer/netlib-primer