Increase visibility of NGContext methods to allow integration testing.
Close NGInputStream before sending exit code to client to avoid races. Allow NGClientListeners to throw InterruptedExceptions to interrupt main thread. Don't call clientDisconnected handlers during normal shutdown.
Merge pull request #22 from jimpurbrick/master

Close NGInputStream before sending exit code to client to avoid races. Allow NGClientListeners to throw InterruptedExceptions to interrupt main thread. Don't call clientDisconnected handlers during normal shutdown.