daemon: install master shutdown handlers without a separate forking process
daemon: better shutdown/sigint reporting
daemon: die if unable to create a stampfile
add workaround against shutdown() being called in child task context