Stop daemon when run returns