SIP-213: Moved log line at the top.  identifier will be invalidated after it was remove which could result top a crash if we call loggin after.