Unload Revit Links

Just put this before you call Unload()

TransactionManager.Instance.ForceCloseTransaction()
5 Likes