apply connection.end()
support GetLog (on CDH5)