pf plugin: cleaner error-handling