Clear the log queue and terminate async worker cleanly on process shutdown

https://github.com/logentries/le_ruby/pull/23
@tardate