To release a connection invoke the Nntp#disconnect method. You should always release your connection once you are finished with an NNTP session.
Example
// release connection
nntp.disconnect();