Fix cached_input accessing task options
Small tweaks
Log the new pid when daemonizing.