pkgaction: print error messages to stderr. Refs #2820
pkgaction: exit with non-zero value if events fail. Refs #2820

The new Tracker module from Nethgui requires non-zero process exit
code to detect an error condition.
Merge branch 'b2820'