create_abstraction() now returns an error code if the file could not