improve handling of close() in hb_logger (gets rid of stack trace / error when terminating STS)
improve handling of close() in hb_logger (gets rid of stack trace / error when terminating STS)

jmiserez/sts,jmiserez/sts