Add real logging call inside main signal handler

Targets #467

Removes all `@todo`s for `src/main.c`.