Fix dump_uncaught_error in the SignalThread on stop

GitHub: fixes #12

It works well when you send SIGTERM signal to only fluentd master
process. If you send SIGTERM signal to all fluentd
processes (including worker processes), it may not work well. In the
case, you need to send SIGTERM signal to all fluentd processes N-times
until fluetnd is finished.