Avoid daemon cleanup if not a daemon