Add daemonize option (implements #409)