Clean up exception issues in RemoteRefUpdate