handling persistence errors with alerts