The check that the package is orphaned is performed in `unorphan_package` which raises an exception