- } catch (IOException e) {
- if (D) Log.d(TAG, String.format("Connect exception %s", e.toString()));
+ } catch (Exception e) {
+ AltosDebug.debug("Connect exception %s", e.toString());
+ try {
+ local_socket.close();
+ } catch (Exception ce) {
+ AltosDebug.debug("Close exception %s", ce.toString());
+ }