Shouldn't this be done on the module init so it could signal that it failed? Bailing out here doesn't look right.