Small fixes in stopping daemons script