prevent error swallowing in pre-init hook