Unregister loader in case module declaration fails