Fix updating UniqueID in hangup handler