Use at_exit instead of hacky finalizer
Merge pull request #15 from fluent/use-at_exit

Use at_exit instead of hacky finalizer