catch persists errors in entity persist