refactor(): throw proper error when architect app is resolved and errors occurred, also call registerModel with the proper context