Added exception when failed to create emf