terminate ctx from nn_global_term. matches init call for ctx in nn_global_init
Merge branch 'master' of https://github.com/nanomsg/nanomsg
Merge pull request #242 from emijah/master

terminate ctx from nn_global_term as well