problems with terminating a java application
I wrote a code for reading a local JSON-File and putting it on port 9000. After a set time limit the class PutJsonOnline should be terminated. The terminate method will be called and the access to port 9000 should be cut. However, after calling the terminate method, I still can access port 9000. Can anybody help me terminating the connection to port 9000 properly?