Java does not have destructors. However, you can try two things.
1. Have thread that has references to all of your connections and calls Connection.isClosed() at regular intervals. If it detects that a connection is closed, it can output a message, etc.
2. Extend the Connection class. In...