catch persistence errors and show user