fix: not setting module reference to NULL in module init function fails to report exception on return