Added syslog events for app lifecycle, fixes #394.