fix nn_shutdown function
Merge pull request #1 from kubo39/patch-1

fix nn_shutdown function