Add nn_term native function.
Rename getSocket method name to getNativeSocket.
Add terminate function to both clojure and java api.