Move signal logging to the PostHook.

This change lets people use a custom logger without getting extraneous output.