Add options to daemonize and create error log

This makes startup cleaner