Thank you for the clarificartion Michael - that scenario should have been covered by the fix but I will make sure I investigate it more closely to verify.
Regarding the inability to close the connection I would suggest starting a separate thread for that one - there is possibly an option you have not seen or if that is not available then there may be something we are missing as I agree there is not nescesarily a relationship between the length of time a java process is running and how long a connection to the server is maintained.