really stop daemon on write error

And a bunch of white-space cleanups.
add missing init.d file for pvefw-logger
improve Makefile clean target