catching error and logging it before "rethrowing"
fixed creation of the contact to be compatible with 1.3