Fixed daemonization not logging errors