/** Stop the internal threads */ public void stop() { // Stop the Threads toReceive.interrupt(); toSend.interrupt(); // Disconnect from the service communicationsVPNConnection.close(); }