No this is not how it should have gone. Shouldn't have been in that situation. May have been a correctable error but by definition it was still an error. You'll have to ask yourself what you could have done differently to avoid such an ugly situation.
Otherwise, it looks like you handled the situation correctly after you were already mixed up in it.