Changed missing arguments exits with EXIT_FAILURE.
Switched error() calls to syslog().