removed the COM_QUERY and COM_QUIT statements from log and changed e.printStackTrace to LOGGER.error