Redirect IO properly and emit message for checkpointing
Daemonize earlier so that we don't lose app threads. Fixes #183