void shutdown() { interrupt(); final Connection c = conn; if (c != null) { try { c.close(); } catch (IOException e) { logger.warning("Error while closing connection!", e); } } }