make filterworker more robust

When individual events cause a filter to throw an exception, the
entire filterworker thread will stop accepting data. This patch puts
the exception handler inside the event processing loop to avoid this.
make outputworker more robust

Individual events that cause an output plugin to throw an exception
can crash the logstash application. This patch puts an exception
handler inside the output processing loop to avoid this.