register before_first_fork hook instead of monkey patching, to force synchronous reporting