add module_invoke_all to on-offline events