Fixing bug in plugin.pl that would cause it to never terminate when rsyslog ends a EOF.