- Added an error popup in GUI when user tries to instantiate a primitive and it fails.