Added logging statements for debugging weird bug where daemon shuts down abruptly.