Cleaning up daemon script