public void closeConnection() { if (m_connection != null) { try { m_connection.close(); } catch (IOException exc) { LOG.ERROR("There was an error close connection", exc); } } m_connection = null; }