allows daemon to stop after fetching uid