Issue #1273080 by xjm: [Rollback] Move registration of shutdown function from hook_init() into hook_boot().